package com.hzcx.app.simplechat.ui.moment.contract;

import android.app.Activity;
import android.content.Context;

import com.hzcx.app.simplechat.base.IPresenter;
import com.hzcx.app.simplechat.base.IView;
import com.hzcx.app.simplechat.bean.UpLoadImgBean;
import com.hzcx.app.simplechat.ui.moment.bean.MomentBean;
import com.hzcx.app.simplechat.ui.moment.bean.NewMessageCountBean;

import java.util.List;

public interface MomentContract {

    interface View extends IView {
        void momentResult(List<MomentBean> data);
        void onFail();
        void upLoadImgResult(UpLoadImgBean data);
        void updateBackImgSuccess(String url);
        void fabulousSuccess(int pos);
        void deleteSuccess(int pos);
        void newMsgResult(NewMessageCountBean data);
        void shieldSuccess(int pos);
    }

    interface Presenter extends IPresenter<View> {
        void getMomentList(Context context,int page);
        void upLoadImg(Activity activity,String url);
        void updateBackImg(Context context,String url);
        void momentFabulous(Context context,int id,int pos);
        void deleteMoment(Context context,int id,int pos);
        void getNewMessageCount(Context context);
        void shieldMoment(Context context,int id,int pos);
    }

}
